<?php
    function sendmail($Receiver, $Subject, $Content){
        $CI =& get_instance();
        $config = Array(
        'protocol' => 'smtp',
        'smtp_host' => 'ssl://smtp.googlemail.com',
        'smtp_port' => 465,
        'smtp_user' => 'testheavenjobs1@gmail.com',
        'smtp_pass' => 'heavenjobs',
        'mailtype'  => 'html', 
        'charset'   => 'iso-8859-1'
        );
        $CI->load->library('email', $config);
        $CI->email->set_newline("\r\n");
        
        $CI->email->from('testheavenjobs1@gmail.com', 'Heaven Job');
        $CI->email->to($Receiver); 
        
        $CI->email->subject($Subject);
        $CI->email->message($Content);  
        
        $result = $CI->email->send();
        return $result;
    }
